/*
 @Date: 2022/4/28
 @Desc: 颜色管理
 */

import UIKit

extension UIColor {
    
    /// 创建颜色
    /// rgba
    private static func ip_createColor(_ red: CGFloat,_ green: CGFloat,_ blue: CGFloat,_ alpha: CGFloat = 1)->UIColor{
        
        let color = UIColor.init(red: red / 255.0, green: green / 255.0, blue: blue / 255.0, alpha: alpha)
        return UIColor.init { _ in
            return color
        }
    }
    
    /// vip bt的背景色
    static var ip_vip_bt_bgcolor: UIColor { return ip_createColor(68, 203, 157) }
    /// 字体颜色
    static var ip_text_color: UIColor { return ip_createColor(51, 51, 51) }
    /// cell的边框颜色
    static var ip_cell_border_color: UIColor { return ip_createColor(96, 96, 96, 0.15) }
}
